<script setup>
import {onMounted, ref,inject} from 'vue'



const aa = ref()

onMounted(() => {
  aa.value.style.color = 'red'
  console.log(aa.value.innerHTML)

  setInterval(()=>{
    aa.value.innerHTML = new Date().toLocaleTimeString()
  },1000)

  //DOM
  document.querySelector('#ad').innerHTML = 'hello'
})
</script>

<template>
  <div id="ad"></div>

  <div ref="aa">fffffffffffffffffff</div>
</template>

<style scoped>

</style>
